package question;

public class AboutType {

	/**
	 * @param args
	 * void
	 */
	public static void main(String[] args) {
		int bbit = Byte.SIZE;		//=>8
		int cbit = Character.SIZE;	//=>16 可见使用的是unicode编码，即UTF-16
		int sbit = Short.SIZE;		//=>16
		int ibit = Integer.SIZE;	//=>32
		int lbit = Long.SIZE;		//=>64
		int fbit = Float.SIZE;		//=>32
		int dbit = Double.SIZE;		//=>64
		System.out.println(bbit+" "+cbit+" "+sbit+" "+ibit+" "+lbit+" "+fbit+" "+dbit);
		
//		byte b = 'w';
//		char c = 'w';
		String str = "w";
		System.out.println(str.getBytes().length);		//=>1
		System.out.println(str.toCharArray().length);	//=>1
	}

}
